package com.tbit.uqbike.constant.enums;

/**
 * @Author HZW
 * @ClassName auditState
 * @Description 审核状态
 * @date 2022/3/8 17:13
 * @Version 1.0
 */
public enum AuditState {
    AUDIT_STATE_VALID(1, "有效"),
    AUDIT_STATE_NUVALID(0, "无效"),
    AUDIT_STATE_INRRVIEW(2, "审核中");

    private int index;
    private String desc;

    AuditState(int index, String desc) {
        this.index = index;
        this.desc = desc;
    }

    public static AuditState of(int orderStatus) {
        for (AuditState temp : AuditState.values()) {
            if (temp.getIndex() == orderStatus) {
                return temp;
            }
        }
        return null;
    }

    public static void main(String[] args) {

    }

    public int getIndex() {
        return index;
    }

    public String getDesc() {
        return desc;
    }
}
